﻿import L from '../../lib/js/vue.localization';
import Util from '../../lib/js/vue.util';
import IdentityMenuManager from './IdentityMenuManager';
import BangleAbpMenuManager from './BangleAbpMenuManager';


var _store;

export default {
    init({ store }) {
        _store = store;
        L.init({ store });
        Util.init({ store });
        IdentityMenuManager.init({ store });
    },
    getMenus() {
        var _menus = [];
        var _identityGroup = IdentityMenuManager.getMenus();
        if (_identityGroup.children.length > 0) {
            _menus.push(_identityGroup);
        }

        //Products
        var _productsGroup = BangleAbpMenuManager.getMenus();
        if (_productsGroup.children.length > 0) {
            _menus.push(_productsGroup);
        }

        return _menus;
    }
}